package com.wanho.java157.ProductManagement.service.Impl;

import com.wanho.java157.ProductManagement.mapper.InventoryMapper;
import com.wanho.java157.ProductManagement.po.ProductInventory;
import com.wanho.java157.ProductManagement.service.InventoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class InventoryServiceImpl implements InventoryService {
    @Autowired
    private InventoryMapper inventoryMapper;
    @Override
    public List<ProductInventory> selectAll() {
        return inventoryMapper.selectAll();
    }

    @Override
    public boolean modify(ProductInventory productInventory) {
        return inventoryMapper.modify(productInventory);
    }

    @Override
    public List<ProductInventory> selectAb(String Name) {
        return inventoryMapper.selectAb(Name);
    }

    @Override
    public ProductInventory selectById(Integer id) {
        return inventoryMapper.selectById(id);
    }


}
